package ar.com.fiuba.ElectronicCircuitAnalyst.domain.specs;

import ar.com.fiuba.ElectronicCircuitAnalyst.domain.api.Lead;
import ar.com.fiuba.ElectronicCircuitAnalyst.domain.common.Specification;

/**
 * Input leads cannot contain more than one connection.
 */
public class InputLeadCanConnectSpecification implements Specification<Lead> {

	public Boolean isSatisfiedBy(Lead lead) {
		return ! lead.isConnected();
	}

}
